import React, { PropTypes } from 'react';
import { Router, Route, IndexRoute, Link } from 'dva/router';
import Home from './routes/home';
import Login from './routes/login';
import List from './routes/list';
import App from './routes/app';
import Scroll from './routes/scroll';
import Redux from './routes/redux';

export default function({ history }) {
  return (
    <Router history={history}>
      <Route component={App}>
        <Route path="/" component={Home} />
        <Route path="/login" component={Login} />
        <Route path="/list" component={List} />
        <Route path="/scroll" component={Scroll} />
        <Route path="/redux" component={Redux} />
      </Route>
    </Router>
  );
};
